Optimal. Leaf size=51 \[ \frac{\tanh ^{-1}\left (\frac{a+b \sin ^2(c+d x)}{\sqrt{a+b} \sqrt{a+b \sin ^4(c+d x)}}\right )}{2 d \sqrt{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0555082, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3229, 725, 206} \[ \frac{\tanh ^{-1}\left (\frac{a+b \sin ^2(c+d x)}{\sqrt{a+b} \sqrt{a+b \sin ^4(c+d x)}}\right )}{2 d \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3229
Rule 725
Rule 206
Rubi steps
\begin{align*} \int \frac{\tan (c+d x)}{\sqrt{a+b \sin ^4(c+d x)}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{(1-x) \sqrt{a+b x^2}} \, dx,x,\sin ^2(c+d x)\right )}{2 d}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{a+b-x^2} \, dx,x,\frac{-a-b \sin ^2(c+d x)}{\sqrt{a+b \sin ^4(c+d x)}}\right )}{2 d}\\ &=\frac{\tanh ^{-1}\left (\frac{a+b \sin ^2(c+d x)}{\sqrt{a+b} \sqrt{a+b \sin ^4(c+d x)}}\right )}{2 \sqrt{a+b} d}\\ \end{align*}
Mathematica [A] time = 0.0906018, size = 65, normalized size = 1.27 \[ \frac{\tanh ^{-1}\left (\frac{a-b \cos ^2(c+d x)+b}{\sqrt{a+b} \sqrt{a+b \cos ^4(c+d x)-2 b \cos ^2(c+d x)+b}}\right )}{2 d \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.203, size = 72, normalized size = 1.4 \begin{align*}{\frac{1}{2\,d}\ln \left ({\frac{1}{ \left ( \cos \left ( dx+c \right ) \right ) ^{2}} \left ( 2\,a+2\,b-2\,b \left ( \cos \left ( dx+c \right ) \right ) ^{2}+2\,\sqrt{a+b}\sqrt{a+b-2\,b \left ( \cos \left ( dx+c \right ) \right ) ^{2}+b \left ( \cos \left ( dx+c \right ) \right ) ^{4}} \right ) } \right ){\frac{1}{\sqrt{a+b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan \left (d x + c\right )}{\sqrt{b \sin \left (d x + c\right )^{4} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.66844, size = 589, normalized size = 11.55 \begin{align*} \left [\frac{\log \left (\frac{{\left (a b + 2 \, b^{2}\right )} \cos \left (d x + c\right )^{4} - 4 \,{\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt{b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + a + b}{\left (b \cos \left (d x + c\right )^{2} - a - b\right )} \sqrt{a + b} + 2 \, a^{2} + 4 \, a b + 2 \, b^{2}}{\cos \left (d x + c\right )^{4}}\right )}{4 \, \sqrt{a + b} d}, \frac{\sqrt{-a - b} \arctan \left (\frac{\sqrt{b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + a + b}{\left (b \cos \left (d x + c\right )^{2} - a - b\right )} \sqrt{-a - b}}{{\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \,{\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}}\right )}{2 \,{\left (a + b\right )} d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan{\left (c + d x \right )}}{\sqrt{a + b \sin ^{4}{\left (c + d x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan \left (d x + c\right )}{\sqrt{b \sin \left (d x + c\right )^{4} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]